- Posts: 10
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
is it possible to change {SURVEYDESCRIPTION} with a "beforeSurveyPage" event?
- mcalvoca
- Topic Author
- Offline
- New Member
Less
More
8 years 11 months ago #120791
by mcalvoca
is it possible to change {SURVEYDESCRIPTION} with a "beforeSurveyPage" event? was created by mcalvoca
i want to change {SURVEYDESCRIPTION} value for showing some text in welcome page and other text in surveys pages.
I am starting a new plugin, but i dont know how to access to {SURVEYDESCRIPTION} value in runtime.
thanks a lot
I am starting a new plugin, but i dont know how to access to {SURVEYDESCRIPTION} value in runtime.
thanks a lot
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
8 years 11 months ago #120794
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic is it possible to change {SURVEYDESCRIPTION} with a "beforeSurveyPage" event?
Hi,
I don't think there are a good solution actually. Maybe some bad hack ....
You can make a clean Feature request if you want.
I don't think there are a good solution actually. Maybe some bad hack ....
You can make a clean Feature request if you want.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The following user(s) said Thank You: mcalvoca
The topic has been locked.
- gabrieljenik
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 272
- Thank you received: 45
8 years 11 months ago #120805
by gabrieljenik
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .
Replied by gabrieljenik on topic is it possible to change {SURVEYDESCRIPTION} with a "beforeSurveyPage" event?
What about some JQuery that modifies the HTML?
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
8 years 11 months ago #120806
by DenisChenu
And actually : we don't know the usage of this update.
Example one : update {SURVEYDESCRIPTION} for each page of survey : just use {GROUPDESCRIPTION} at place of SURVEYDESCRIPTION.
update SURVEYDESCRIPTION according to Question answers : EM can be used here.
Etc ....
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic is it possible to change {SURVEYDESCRIPTION} with a "beforeSurveyPage" event?
It's not a clean solution.gabrieljenik wrote: What about some JQuery that modifies the HTML?
And actually : we don't know the usage of this update.
Example one : update {SURVEYDESCRIPTION} for each page of survey : just use {GROUPDESCRIPTION} at place of SURVEYDESCRIPTION.
update SURVEYDESCRIPTION according to Question answers : EM can be used here.
Etc ....
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
8 years 11 months ago - 8 years 11 months ago #120823
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic is it possible to change {SURVEYDESCRIPTION} with a "beforeSurveyPage" event?
DenisChenu wrote:
Why not?It's not a clean solution.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 8 years 11 months ago by tpartner.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
8 years 11 months ago #120824
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic is it possible to change {SURVEYDESCRIPTION} with a "beforeSurveyPage" event?
Gabriel, can you give a link to a small test survey using your template?
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
8 years 11 months ago #120827
by DenisChenu
Blind user can have difficulty with JS etc ....
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic is it possible to change {SURVEYDESCRIPTION} with a "beforeSurveyPage" event?
Javascript can be broken, user can deactivate javascript ....tpartner wrote: DenisChenu wrote:
Why not?It's not a clean solution.
Blind user can have difficulty with JS etc ....
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
8 years 11 months ago #120828
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic is it possible to change {SURVEYDESCRIPTION} with a "beforeSurveyPage" event?
I disagree, I think the internet has moved beyond a point where we can have user-friendly, feature-rich applications without JS. I suppose, if you're a purist, you could run LimeSurvey without JS but it would be pretty boring.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13648
- Thank you received: 2491
8 years 11 months ago - 8 years 11 months ago #120829
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic is it possible to change {SURVEYDESCRIPTION} with a "beforeSurveyPage" event?
Hi Tony,
Yes, javascripot is done to be more user friendly. But, there are a lot of time where javascript is missused.
When i work on a website, i like to have :
1st : a good semantic system
2nd : a good usuability out of the box.
3rd : after i go to the look and feal, and here : all javascrit system can be used.
Some staring point en.wikipedia.org/wiki/Semantic_Web en.wikipedia.org/wiki/Usability etc ...; but i know better French website ;).
Actually, in LimeSurvey we don't need any plugin to update Description.
Just a
<script>
$(".survey-description").html("My own description");
</script>
Is OK.
But i really think this can be done without js and more easily done directly using LimeSurvey.
Actually : mcalvoca don't tell us why he want to update SURVEYDESCRITION ? What for ?
Depend of the need : survey manager can easily update or not the system .
Denis
PS: don't remind it too : but test with a bad connection some website give an idea too.
Yes, javascripot is done to be more user friendly. But, there are a lot of time where javascript is missused.
When i work on a website, i like to have :
1st : a good semantic system
2nd : a good usuability out of the box.
3rd : after i go to the look and feal, and here : all javascrit system can be used.
Some staring point en.wikipedia.org/wiki/Semantic_Web en.wikipedia.org/wiki/Usability etc ...; but i know better French website ;).
Actually, in LimeSurvey we don't need any plugin to update Description.
Just a
<script>
$(".survey-description").html("My own description");
</script>
Is OK.
But i really think this can be done without js and more easily done directly using LimeSurvey.
Actually : mcalvoca don't tell us why he want to update SURVEYDESCRITION ? What for ?
Depend of the need : survey manager can easily update or not the system .
Denis
PS: don't remind it too : but test with a bad connection some website give an idea too.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 8 years 11 months ago by DenisChenu.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10109
- Thank you received: 3595
8 years 11 months ago #120830
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic is it possible to change {SURVEYDESCRIPTION} with a "beforeSurveyPage" event?
Thanks, I don't think I need any tips on how to develop websites.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- gabrieljenik
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 272
- Thank you received: 45
8 years 11 months ago #120831
by gabrieljenik
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .
Replied by gabrieljenik on topic is it possible to change {SURVEYDESCRIPTION} with a "beforeSurveyPage" event?
The example that Dennis gave below is what I meant.
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Checkout our Reporting Solutions and our plugin shop at www.encuesta.biz .
The topic has been locked.